/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.aaron.platform.service;

import com.aaron.platform.dao.PageInfo;
import com.aaron.platform.entity.FgysEnterprise;
import com.aaron.platform.exceptions.EnterpriseActiveException;
import com.aaron.platform.exceptions.EnterpriseAllreadyExistException;
import com.aaron.platform.exceptions.EnterpriseNotExistException;
import java.util.List;
import java.util.Properties;

/**
 *
 * @author Administrator
 */
public interface IEnterpriseMgr {

    public FgysEnterprise findEnterpriseById(Integer enterpriseId) throws EnterpriseNotExistException;

    public FgysEnterprise findEnterpriseByName(String enterpriseName) throws EnterpriseNotExistException;

    public List<FgysEnterprise> findAllEnterprises();
    
    public PageInfo findEnterprisesByCondition(Properties condition, int startIndex, int pageSize);

    public void addEnterprise(FgysEnterprise fgysEnterprise) throws EnterpriseAllreadyExistException;

    public void updateEnterprise(FgysEnterprise fgysEnterprise) throws EnterpriseAllreadyExistException,EnterpriseNotExistException;

    public void removeEnterprise(Integer enterpriseId) throws EnterpriseActiveException;
}
